Push

class Push

Types

Link copied to clipboard
object Companion
Link copied to clipboard
fun interface IGenerateKeysListener
Link copied to clipboard

Properties

Link copied to clipboard
val isInBackground: Boolean

Functions

Link copied to clipboard
fun activate(application: Application)

Activate the push notification mode to avoid keeping a web socket opened (reduce the battery consumption).

Link copied to clipboard
fun onMessageReceived(data: MutableMap<String, String>, listener: Push.IMessageReceivedListener?)

Use this method in the onMessageReceived of your class which extends FirebaseMessagingService to allow the RainbowSdk to manage new message received.

Link copied to clipboard
fun onTokenRefresh(refreshedToken: String?)

Use this method in the onTokenRefresh of your class which extends FirebaseInstanceIdService to allow the RainbowSdk to refresh token if necessary.